package com.example.demo.activemq;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author dinghx
 */
@Component
public class ReceiveBean {

    @JmsListener(destination = "itcast")
    public void read(String text){
        System.out.println("接收到消息："+text);
    }
}
